package com.manli.api.dto;

import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

/**
 * 商品评价日志表
 * 
 * @author manli
 * @email 
 * @date 2020-07-09 15:40:33
 */
@ApiModel(value = "商品评价日志表")
@Data
public class AppraiseLog implements Serializable {

	/**
	 * 唯一标识
	 */

    @ApiModelProperty(value = "唯一标识",dataType = "Integer")
	private Integer appraiseLogId;

	@ApiModelProperty(value = "主店id",dataType = "Integer")
	private Integer branchId;

	@ApiModelProperty(value = "分店id",dataType = "Integer")
	private Integer partnerId;
	/**
	 * 用户唯一openid
	 */

    @ApiModelProperty(value = "用户唯一openid",dataType = "String")
	private String openid;
	/**
	 * 用户唯一unionid
	 */

    @ApiModelProperty(value = "用户唯一unionid",dataType = "String")
	    private String unionid;
	/**
	 * 商品唯一id
	 */

    @ApiModelProperty(value = "商品唯一id",dataType = "Integer")
	    private Integer goodsDefId;
	/**
	 * 用户购买的规格id
	 */

    @ApiModelProperty(value = "用户购买的规格id",dataType = "Integer")
	    private Integer goodsModelId;
	/**
	 * 评价内容
	 */

    @ApiModelProperty(value = "评价内容",dataType = "String")
	    private String appraiseMsg;

	/**
	 * 评价图片
	 */

	@ApiModelProperty(value = "评价图片,json数组字符串",dataType = "String")
	private String appraisePic;


	/**
	 * 评分，满分10分 6分及以下差评 6-8.5分 中评 8.5及以上好评
	 */

    @ApiModelProperty(value = "评分，满分10分 6分及以下差评 6-8.5分 中评 8.5及以上好评",dataType = "BigDecimal")
			private BigDecimal appraiseScore;

	/**
	 * 味道评分
	 */

	@ApiModelProperty(value = "味道评分",dataType = "BigDecimal")
	private BigDecimal appraiseTasteScore;

	/**
	 * 包装评分
	 */

	@ApiModelProperty(value = "包装评分",dataType = "BigDecimal")
	private BigDecimal appraisePackScore;
	/**
	 * 评价时间
	 */

    @ApiModelProperty(value = "评价时间",dataType = "Date")
	    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date createTime;

	/**
	 * 用户微信昵称
	 */

	@ApiModelProperty(value = "用户微信昵称",dataType = "String")
	private String nickname;

	/**
	 * 用户微信头像
	 */

	@ApiModelProperty(value = "用户头像",dataType = "String")
	private String headimgurl;


	@ApiModelProperty(value = "总订单号",dataType = "String")
	private String orderNoMain;


	@ApiModelProperty(value = "子订单号",dataType = "String")
	private String orderNoSub;

}
